package com.me.bbs.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.PostCollectionDTO;
import com.me.bbs.entity.PostCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lm
 * @since 2023-01-16
 */
public interface CollectionMapper extends BaseMapper<PostCollection> {

    Page<PostCollectionDTO> listCollection(Page<PostCollectionDTO> page, @Param(Constants.WRAPPER) LambdaQueryWrapper<PostCollection> wrapper);
}
